//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.ArrayList;
import java.util.List;

public class LogicEventData {
    private static final List<LogicEventDataEntry> events = new ArrayList();

    public LogicEventData() {
    }

    public static void addEvent(LogicEventDataEntry e) {
        events.add(e);
    }

    public static LogicEventDataEntry getEvent(int eIndex) {
        return eIndex < events.size()?(LogicEventDataEntry)events.get(eIndex):null;
    }

    public static int size() {
        return events.size();
    }

    public static String getBonusWeights(Long avatarid) {
        String rval = new String();

        for(int i = 0; i < events.size(); ++i) {
            LogicEventDataEntry event = (LogicEventDataEntry)events.get(i);
            Integer weight = event.getWeight(avatarid);
            rval = rval + "  \"" + event.getGoodReward() + "\": " + weight + "\n";
        }

        return rval;
    }
}
